<x-filament-panels::page>
    <div class="bg-white dark:bg-gray-900 rounded-xl ring-1 mine-header  px-4 py-4 flex items-center">
        <x-filament::avatar src="{{ auth()->user()->getFilamentAvatarUrl()}}" size="w-12 h-12"></x-filament::avatar>
        <div class="pl-4 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 flex-1 text-sm gap-2 text-dark dark:text-white/90">
            <div>
                <span class="text-gray-500 dark:text-gray-400 text-xs">用户名：</span>
                <span>{{ auth()->user()->name  }}</span>
            </div>
            <div>
                <span class="text-gray-500 dark:text-gray-400 text-xs">邮箱地址：</span>
                <span>{{ auth()->user()->email  }}</span>
            </div>
            <div>
                <span class="text-gray-500 dark:text-gray-400 text-xs">状态：</span>
                @if(auth()->user()->status == 1)
                    <x-filament::badge color="success" size="sm">
                        <span class="text-xs">正常</span>
                    </x-filament::badge>
                @endif
                @if(auth()->user()->status == 0)
                    <x-filament::badge color="danger" size="sm">
                        <span class="text-xs">已禁用</span>
                    </x-filament::badge>
                @endif
            </div>
            <div>
                <span class="text-gray-500 dark:text-gray-400 text-xs">注册时间：</span>
                <span>{{ auth()->user()->created_at  }}</span>
            </div>
            <div>
                <span class="text-gray-500 dark:text-gray-400 text-xs">角色：</span>
                @if(auth()->user()->is_super)
                    <span>超级管理员</span>
                @else
                    <span>{{ auth()->user()->roles->pluck('name')->implode(',')  }}</span>
                @endif

            </div>
        </div>
    </div>
    {{ $this->form  }}

</x-filament-panels::page>
